﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.Globalization;
using System.Web.Mvc;

namespace BemEstarEmprego.Web.Helpers
{
	public static class MyHelpers
	{

		public static string GetScript(this HtmlHelper html, string filename)
		{
			var context = HttpContext.Current;
			if (context == null)
				throw new InvalidOperationException("Http Context cannot be null.");

			var defaultScript = "/Scripts/" + filename;
			return defaultScript;
		}

		public static void LeavePrivate()
		{
			HttpContext.Current.Session["UsuarioSession"] = null;
		}

	}
}